package com.ssm.th.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: Hsiao
 * @date: 2023-11-21
 * @description:
 */
@Controller
public class TestController {

    @GetMapping("/hello")
    @ResponseBody
    public String test() {
        return "Hello Thymeleaf";
    }

    @GetMapping(value = {"/", "/index"})
    public String toIndex() {
        return "index";
    }
}
